package com.wxyzz.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * --- 加油，努力 ---
 *
 * @Author XYP
 * @Date 2024/11/21
 * @Solgne 从想做到能做
 * @Desc
 */
@Data
@TableName("post_like_info")
public class PostLikeInfo {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid; // 用户id
    private Integer postId; // 帖子id
    private Integer likeStatus; //点赞状态 0.为点赞 1.已点赞
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
